﻿using TencentCloud.Ess.V20201111.Models;
using TencentCloud.Trtc.V20190722.Models;
using ZenSystemService.Api.DTOs.ProductType;

namespace ZenSystemService.Api.DTOs
{
    public class InstitutionSalesOrderDTO
    {
        public int Id { get; set; }
        public decimal FinalAmount { get; set; }
        public int Status { get; set; }
        public ICollection<InstitutionSalesOrderItemCreateDTO> OrderItems { get; set; } = new List<InstitutionSalesOrderItemCreateDTO>();
        public UserDTO User { get; set; }
        public InstitutionDTO Institution { get; set; }
        public DateTime CreatedDate { get; set; }
    }

    public class InstitutionSalesOrderItemCreateDTO
    {
        public int Id { get; set; }
        public int ProductTypeId { get; set; }
        public ProductTypeQueryResultDTO? ProductType {  get; set; }
        public int InstitutionSaleOrderId { get; set; }
        public decimal UnitPrice { get; set; }
        public int Quantity { get; set; }
        public decimal SubtotalAmount { get; set; }
    }
}
